package com.hrs.core.mapper;

import com.hrs.enity.db.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hrs.enity.dto.UserViewDto;
import com.hrs.enity.ro.LoginResponseRo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 纱雾休比酱
* @description 针对表【t_user(系统用户表)】的数据库操作Mapper
* @createDate 2022-12-05 23:04:49
* @Entity com.hrs.enity.db.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 登录
     * @param phone
     * @param password
     * @return
     */
    LoginResponseRo login(@Param("phone") String phone, @Param("password") String password);

    List<UserViewDto> listUser(@Param("roleId") Integer roleId,@Param("idDisabled") Integer isDisabled);

}




